local map = vim.keymap.set
function ToggleFullScreen()
  -- 调用 GuiWindowFullScreen 函数，并切换状态 (0 或 1)
  vim.cmd("call GuiWindowFullScreen((g:GuiWindowFullScreen + 1) % 2)")
end

-- 映射 F11 切换全屏
map("n", "<F11>", ToggleFullScreen, { noremap = true, silent = true, desc = "Toggle fullscreen with F11" })

-- 映射 Alt+Enter 切换全屏
map("n", "<A-Enter>", ToggleFullScreen, { noremap = true, silent = true, desc = "Toggle fullscreen with Alt+Enter" })
